﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Activation;
using NHibernate.Cfg;

namespace NInjectTest
{
  public class DataLayerProvider : IProvider
  {
    public Configuration Configuration { get; set; }

    public object Create(IContext context)
    {
      return ((Configuration != null)) ? new DataLayer(Configuration) : null;
    }

    public Type Type
    {
      get
      {
        throw new NotImplementedException();
      }
    }
  }
}
